package com.ms.service.module.analysis.async;

import com.ms.service.module.analysis.MemberType;
import com.ms.service.module.analysis.db.AnalysisDAO;
import com.ms.service.module.analysis.db.model.RealTimeAnalysisModel;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

public class UpdateRealTimeMemberAsync extends TaskAsyncCommand{
	
	private RealTimeAnalysisModel model;
	
	private MemberType memberType;

	@Override
	public void asyncExecute() throws Exception {		
		AnalysisDAO.getInstance().updateRealTimeMember(model, memberType);
	}

	@Override
	public void execute() throws Exception {
		//沒任何事情做
	}

	public RealTimeAnalysisModel getModel() {
		return model;
	}

	public void setModel(RealTimeAnalysisModel model) {
		this.model = model;
	}

	public MemberType getMemberType() {
		return memberType;
	}

	public void setMemberType(MemberType memberType) {
		this.memberType = memberType;
	}
}
